/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import java.io.File;
import javax.swing.JFileChooser;
import model.Data;

/**
 *
 * @author jc218934
 */
public class UCSetImgFolder implements UCController
{

    public void run()
    {
        JFileChooser fileChooser = new JFileChooser();
        fileChooser.setApproveButtonText("select the image folder");
        fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);

        fileChooser.showOpenDialog(null);
        File file = fileChooser.getSelectedFile();
        if (file == null) return ;
        Data.imgFolder = file.getAbsolutePath();
    }

}
